<?php

class DBMySQL extends mysqli {
	
	public function __construct() {
		$hostname = "127.0.0.1";
		$username = "root";
		$password = "dlawkd";
		$database = "LQDB";
	
		parent::__construct($hostname, $username, $password, $database);
		
        if (mysqli_connect_error()) {
            die('Connect Error (' . mysqli_connect_errno() . ') '
                . mysqli_connect_error());
        }

        parent::query("set names 'utf8'");
    }	
	
}

?>